package com.he1618.boot3.controller;


import com.nbsaas.boot.rest.response.ResponseObject;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @RequestMapping("/index")
    public String index() {
        return "hello";
    }

    @RequestMapping("/message")
    public ResponseObject<String> message(String message) {
        ResponseObject<String> result = new ResponseObject<>();
        result.setData(message);
        return result;
    }
}
